BIN=processpool
CC=g++
#SRC=$(shell ls *.cc)
SRC=$(wildcard *.cc)
OBJ=$(SRC:.cc=.o)
FLAGS= -c -Wall -std=c++14
LD_FLAG=-o

$(BIN):$(OBJ)
	$(CC) $(LD_FLAG) $@ $^
%.o:%.cc
	$(CC) $(FLAGS) $<
.PHONY:clean
clean:
	rm -f $(OBJ) $(BIN)

.PHONY:test
test:
	@echo $(SRC)
	@echo $(OBJ)
